{% extends "base.html" %}

<body>
{% block header %}
{% include "group-menu.html" %}
{% endblock %}

{% block content %}
<div class="wrap">
	{% include "tree.html" %}
    <div class="wrap_left right">
        <div class="shenqing1">
        	<h5 style="float:left;width:96%;margin-bottom:10px;">创建GROUP</h5>
		</div>
        <div class="caozuo_add">
	        <form action="/group/add/" method="POST">
			<div class="box">
	            <div class="row">
	                <label class="">报警组名：</label>
					<input id="name" type="text" value="{{ group.name }}" name="name" class="word_in" style="border:1px solid #7F9DB9;"/>
	                <span id="nameInfo">请给报警组起一个名字。长度大于5。</span>
	            </div>
	          	<div class="row">
	          		<label class="">组内成员：</label>
	                {% for u in ulist %}
	                <input id="uid" name="uid" type="checkbox" value="{{ u.id }}"  class="fuxuan"/>{{ u.username }}&nbsp;
	                {% endfor %}
	                <span id="uidInfo"></span>
				</div>
	          	<div class="row">
	          		<label class="">报警方式：</label>
						<input name="mode" type="checkbox" value="0" checked=true/> Mail&nbsp;&nbsp;
						<input name="mode" type="checkbox" value="1" checked=true/> 短信&nbsp;&nbsp;
						<input name="mode" type="checkbox" value="2"/> Gtalk&nbsp;&nbsp;
						<input name="mode" type="checkbox" value="3"/> MSN&nbsp;&nbsp;
	                <span id="uidInfo"></span>
				</div>
				<div class="row">
					<label class="">描述信息：</label>
					<input id="texts" type="text" value="{{ group.detail }}" name="detail" class="word_in" style="border:1px solid #7F9DB9;"/>
	          		<span id="textsInfo"> 对该报警组的简单描述。</span>
				</div>
			</div>
			<input type="submit" class="tijiao_big" value="&nbsp;&nbsp;提交" />
        </form>
    </div>
</div>

{% endblock %}
</body>
</html>
